$tbody.on('click', function(e) {
    const target = e.target
    if ($(target).is('.btn-del')) {
        var id = $(target).parent().parent().attr('data-id')
        $.ajax({
            url: 'api/shop/delete.php',
            crossDomain: true,
            data: { id },
            success: (resp) => {
                $('tbody').empty()
                getData()
            },
            dataType: 'json'
        })
    }
})